-- GENERATED SPELL FOR [Overseer Syra] --


function spell0_29518(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29518', 2330, 1)
end

function spell1_29518(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15578,pUnit)
pUnit:RegisterEvent('Sorts_29518', 648, 1)
end

function spell2_29518(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(49807,pUnit)
pUnit:RegisterEvent('Sorts_29518', 2000, 1)
end

function Sorts_29518(pUnit, Event)
local choix_sorts_29518 = math.random(0, 2)
if choix_sorts_29518 == 0 then
pUnit:RegisterEvent('spell0_29518', 1, 1)
end
if choix_sorts_29518 == 1 then
pUnit:RegisterEvent('spell1_29518', 1, 1)
end
if choix_sorts_29518 == 2 then
pUnit:RegisterEvent('spell2_29518', 1, 1)
end
end

function mob29518_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29518', math.random(1500, 3000), 1)
end

function mob29518_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29518_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29518_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29518, 1, 'mob29518_Action')
RegisterUnitEvent(29518, 2, 'mob29518_Leave')
RegisterUnitEvent(29518, 3, 'mob29518_Kill')
RegisterUnitEvent(29518, 4, 'mob29518_Die')
